<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>network - ClueLib</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script></head><body class="FramedContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.52 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="network"></a>network</h1><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual class network</td></tr></table></blockquote><p><span class="virtual">virtual</span> Provides a logging function to store network transactions in the Wireshark hex format.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#network" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">network</a></td><td class=SDescription><span class="virtual">virtual</span> Provides a logging function to store network transactions in the Wireshark hex format.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#network.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#network.fds" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">fds</a></td><td class=SDescription>The dynamic array of file descriptors. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#network.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#network.dump" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">dump</a></td><td class=SDescription><span class="static">static</span> Stores a network transaction to the file specified by the <b>idx</b> using the Wireshark hex format. </td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="network.Properties"></a>Properties</h3></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="network.fds"></a>fds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">static integer fds[]</td></tr></table></blockquote><p>The dynamic array of file descriptors.&nbsp; It is user&rsquo;s responsibility to open the file(s).</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">network::fds    = new[2];
network::fds[0] = $fopen( &quot;file0.hex&quot;, &quot;w&quot; );
network::fds[1] = $fopen( &quot;file1.hex&quot;, &quot;w&quot; );</pre></blockquote></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="network.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="network.dump"></a>dump</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function void dump(</td><td class="PType  prettyprint " nowrap>string&nbsp;</td><td class="PParameter  prettyprint " nowrap>desc,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PType  prettyprint " nowrap>int&nbsp;</td><td class="PParameter  prettyprint " nowrap>idx</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> 0</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p><span class="static">static</span> Stores a network transaction to the file specified by the <b>idx</b> using the Wireshark hex format.&nbsp; It is user&rsquo;s responsibility to open the file before calling this function.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>desc</td><td class=CDLDescription>The description of a transaction.</td></tr><tr><td class=CDLEntry>idx</td><td class=CDLDescription><span class="optional">optional</span> The index of the file descriptor array.&nbsp; The default index is 0.</td></tr></table><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">network::fds    = new[2];
network::fds[0] = $fopen( &quot;file0.hex&quot;, &quot;w&quot; );
network::fds[1] = $fopen( &quot;file1.hex&quot;, &quot;w&quot; );
network::dump( &quot;000000 01 02 03 04&quot; ); // dump to fds[0] (file0.hex)
#100;
network::dump( &quot;000000 11 12 13 14&quot;, .idx( 1 ) ); // dump to fds[1] (file1.hex)

/* file0.hex */
// 0.
// 000000 01 02 03 04

/* file1.hex */
// 100.
// 000000 11 12 13 14</pre></blockquote></div></div></div>

</div><!--Content-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CClass><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">virtual class network</td></tr></table></blockquote><span class="virtual">virtual</span> Provides a logging function to store network transactions in the Wireshark hex format.</div></div><div class=CToolTip id="tt2"><div class=CProperty><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">static integer fds[]</td></tr></table></blockquote>The dynamic array of file descriptors. </div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>static function void dump(</td><td class="PType  prettyprint " nowrap>string&nbsp;</td><td class="PParameter  prettyprint " nowrap>desc,</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%></td></tr><tr><td></td><td class="PType  prettyprint " nowrap>int&nbsp;</td><td class="PParameter  prettyprint " nowrap>idx</td><td class="PDefaultValuePrefix  prettyprint ">&nbsp;=&nbsp;</td><td class="PDefaultValue  prettyprint " width=100%> 0</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><span class="static">static</span> Stores a network transaction to the file specified by the <b>idx</b> using the Wireshark hex format. </div></div><!--END_ND_TOOLTIPS-->

<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>